/**
 *  @file SDLHighScoreView.h
 *
 *  @date 22-dec-2009
 *  @author Ives van der Flaas
 */

#ifndef SDLHIGHSCOREVIEW_H_
#define SDLHIGHSCOREVIEW_H_

#include <tr1/memory>
#include "highScoreView.h"
#include "representation.h"
namespace si_sdl
{
/**
 * SDL implementation of a view for highscore results.
 * This uses the SDLTypesetter and displays the top 10 highcores
 * in a 2 column layout, right column is aligned right.
 */
class SDLHighScoreView: public si::HighScoreView
{
public:
	SDLHighScoreView();
	virtual ~SDLHighScoreView();

	virtual void draw();
	void setText(std::vector<std::string> names, std::vector<int> scores);

private:
	std::tr1::shared_ptr<si::Representation> fNames;
	std::tr1::shared_ptr<si::Representation> fScores;
};

}

#endif /* SDLHIGHSCOREVIEW_H_ */
